home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
sviluppo
/
svilupp1
/
cexclb14.rdm
< prev
next >
Wrap
Text File
|
1997-01-18
|
6KB
|
131 lines
Short: Sample Amiga Exec shared library in 100% C
Author: Andreas_Kleinert@t-online.de
Uploader: Andreas_Kleinert@t-online.de
Type: dev/c
Replaces: CExecLib13.LHA
example.library, test program and source-code V1.4 (30.11.96)
(C) 1996 by Andreas R. Kleinert. All rights reserved.
---
This small sample library source code demonstrates, how to completely
write an Amiga Exec shared library without any assembler stubs
or compiler/linker tricks in PURE C source code.
You may e.g. use this example source code to write more portable
Amiga Exec shared libraries to allow easier porting of these
to other Amiga OS-derived operating systems, or the native
OS of an upcoming PowerPC Amiga.
Translate your 68k-assembler library startup-codes smartly
to C by simply using this source-code as an advice how to do it.
It is _not_ the *ultimate* answer, but a step, which has to be made.
---
Feel free to use this source for own projects.
It is allowed to be spread and distributed anywhere, as far
as my consent is concerned.
Amiga Technologies, or the current owner of the technologie,
is allowed to always put this source on their newest
Developer CD-ROM.
Thanks and credits will always be appreciated - for example,
you MAY, but NEED NOT:
give me credits in your program's docs, send me keyfiles for
your programs using the library, and so on.
But that's simply voluntarily.
_________________________________________________________
| You may reach me the following way. |
| Send bug-reports, money or whatever to: |
|---------------------------------------------------------|
| * SuperView Development & Registration * |
| * DRAFU Development & Registration * |
| * Image Engineer Registration Site Europe * |
| |
| |
| PerSuaSiVe SoftWorX |
| |
| Andreas R. Kleinert |
| Sandstrasse 1 |
| D-57072 Siegen |
| Germany, Europe |
| |
| Any snail mail to the old address will still be routed. |
| |
| Phone: +49-271-22869 also FAX + AM |
| +49-271-22838 |
| |
| Weekdays after 17.00h. |
| |
| When calling via phone you may leave a message, |
| if I'm not available - but don't expect me |
| calling back to USA, Australia, ... since |
| german phone rates are HIGHLY expensive. |
|_________________________________________________________|
EMail:
DO not SEND ANY binaries (or uuencoded) VIA THE
FOLLOWING EMAIL ADDRESSES, EXCEPT MAYBE small ONES
VIA t-online.de (smaller or equal 16 KB).
THANK YOU.
- Fido Andreas Kleinert 2:2457/350.18
- Usenet
Andreas_Kleinert@superview.ftn.sub.org (Fido-Gate)
Andreas_Kleinert@t-online.de (T-Online)
ARK@COB.wwbnet.de (Z-Netz)
- If nothing else works, try one of these public
Fido-Usenet gateways:
In Germany:
Andreas_Kleinert@p18.f350.n2457.z2.fido.sub.org
From USA or elsewhere:
Andreas_Kleinert@p18.f350.n2457.z2.fidonet.org
Please note, that the "superview.ftn.sub.org"
domain will perhaps be renamed in late 1996.
History:
V1.4 (30.11.96) : - added SAS/C specific Ctrl-C disabling code
- made some workarounds compiler sensitive
- redone all with SAS/C V6.57
- 944 Bytes ;-)
V1.3 (13.9.96) : - when starting lib as executable, -1 must be returned
- now caching SysBase
- added some comments, where changes should not
be applied
- added note about sharing library bases
- documented and modified sample function,
so that correct a0/a1/d0/d1 and a6 usage becomes
more obviously and verbose
- still 940 bytes ;-)
V1.2 (5.9.96) : - fixed some things resulting out of a
discussion in Z-Netz
V1.1 (1.9.96) : - small changes in style
(only bumped versions of changed modules):
o moved "examplebase.h" to include/example/
(so also adjusted LibInit.c, StartUp.c
and SCOPTIONS for reflecting that)
o SampleFuncs.h did contain wrong prototype
(did not matter, since only used for
ULONG function table within StartUp.c)
o explicitely __aligned ROMTag structure
V1.0 (14.8.96) : - first release
---
All mentioned trademarks are subjects to their owners.